]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Fix zoom animation
authorAdel Gadllah <adel.gadllah@gmail.com>
Mon, 24 Jun 2013 20:53:56 +0000 (22:53 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Mon, 24 Jun 2013 20:56:17 +0000 (22:56 +0200)
When the allocation of the workspacesView changes during the animation we override
the tween with one that does not animate causing the overview zoom animation
not to happen.

Fix that by ignoring the alloactionChanged notification during the overview
animation.

js/ui/workspacesView.js

index 50f079c3e74c32280db538c5a15b07f9477e453b..3eb9c0dcb363019292627304ef4a34cc8b270114 100644 (file)
@@ -446,7 +446,7 @@ const WorkspacesDisplay = new Lang.Class({
 
     _init: function() {
         this.actor = new St.Widget({ clip_to_allocation: true });
-        this.actor.connect('notify::allocation', Lang.bind(this, this._updateWorkspacesActualGeometry));
+        this.actor.connect('notify::allocation', Lang.bind(this, this._allocationChanged));
         this.actor.connect('parent-set', Lang.bind(this, this._parentSet));
 
         let clickAction = new Clutter.ClickAction()
@@ -676,6 +676,12 @@ const WorkspacesDisplay = new Lang.Class({
         }
     },
 
+    _allocationChanged: function() {
+        if (Main.overview.animationInProgress)
+            return;
+        this._updateWorkspacesActualGeometry();
+    },
+
     _updateWorkspacesActualGeometry: function() {
         if (!this._workspacesViews.length)
             return;